package com.aitesting.constant;

import java.util.Locale;


/**
 * 断言方式枚举
 */
public enum AssertEnum {
    equal("equal"),
    notEqual("notEqual"),
    contains("contain"),
    lengthEqual("lengthEqual"),
    greaterThan("greaterThan"),
    greaterThanOrEqual("greaterThanEqual"),
    lessThan("lessThan"),
    hasSize("hasSize"),
    hasItem("hasItem"),
    hasKey("hasKey"),
    hasItemOrContainsString("hasItemOrContainString"),
    lessThanOrEqual("lessThanOrEqual"),
    startsWith("startWith"),
    endsWith("endWith"),
    hasValue("hasValue"),
    ;

    private String name;

    AssertEnum(String name) {
        this.name = name;
    }

    public String getName() {
        return name.toLowerCase(Locale.ROOT);
    }
}
